package com.example.flowable.service;

import com.alibaba.fastjson.JSONObject;
import com.example.db.model.IPage;
import com.example.flowable.model.FlowableModel;

import java.util.List;

/**
 * @Classname FlowableModelService
 * @Description TODO
 * @Date 2022/8/15 12:35
 * @Created by XiongXiong
 * @Author: X.I.O
 */
public interface FlowableModelService {

    public FlowableModel save(FlowableModel flowableModel);

    public FlowableModel getById(Object id);

    public FlowableModel updateById(FlowableModel flowableModel);

    public IPage<FlowableModel> page(Integer pageNum, Integer pageSize, JSONObject obj);

    /**
     * 获取可新建的流程列表
     * @return
     */
    public List<FlowableModel> getFlowableModelList();
}
